package kr.pe.osdev.service;

import java.util.List;
import java.util.Map;

import kr.pe.osdev.dao.AnswerDao;
import kr.pe.osdev.dao.QuestionDao;
import kr.pe.osdev.domain.Question;
import kr.pe.osdev.domain.User;

import org.springframework.dao.DataAccessException;

public interface QuestionService {
    public void setQuestionDao(QuestionDao dao);
    public void setAnswerDao(AnswerDao dao);
    public Question add(Question question) throws DataAccessException;
    public Question find(Question question) throws DataAccessException;
    public List<Question> findList(Map<String, Object> parameter) throws DataAccessException;
    public List<Question> findShareList(User user, Map<String, Object> parameter) throws DataAccessException;
    public List<Question> findList(User user, Map<String, Object> parameter) throws DataAccessException;
    public int count() throws DataAccessException;
    public Question modify(Question question) throws DataAccessException;
    public Question remove(Question question) throws DataAccessException;
}
